/*************************************************************************
> File Name: main.c
> Author: icebear
> Mail: 3322366195@qq.com
> Created Time: 2023-07-24 19:01:57
> Description: 单向链表
************************************************************************/
#include "stdio.h"
#include "one_way_linked_list.h"
void main()
{
	Node *head = createHead();
	for (int i = 1; i < 10; i++)
	{
		insertTailNode(head, i);
	}
	printList(head);
	insertMidNode(head, 6, 128);
	printList(head);
	insertHeadNode(head, 999);
	printList(head);
	removeNode(head, 6);
	printList(head);
	printf("freeLinkedList\n");
	head = freeLinkedList(head);
	printList(head);
	printf("%p", head);
}